import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/repair_order_result_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class RepairOrderResultEntity {
	late int code;
	late RepairOrderResultObj obj;
	late String msg;

	RepairOrderResultEntity();

	factory RepairOrderResultEntity.fromJson(Map<String, dynamic> json) => $RepairOrderResultEntityFromJson(json);

	Map<String, dynamic> toJson() => $RepairOrderResultEntityToJson(this);

	RepairOrderResultEntity copyWith({int? code, RepairOrderResultObj? obj, String? msg}) {
		return RepairOrderResultEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class RepairOrderResultObj {
	late String fatalType;
	late String repairStandard;
	late String result;
	late String cause;
	late String propose;
	late List<String> pics;

	RepairOrderResultObj();

	factory RepairOrderResultObj.fromJson(Map<String, dynamic> json) => $RepairOrderResultObjFromJson(json);

	Map<String, dynamic> toJson() => $RepairOrderResultObjToJson(this);

	RepairOrderResultObj copyWith({String? fatalType, String? repairStandard, String? result, String? cause, String? propose, List<String>? pics}) {
		return RepairOrderResultObj()
			..fatalType= fatalType ?? this.fatalType
			..repairStandard= repairStandard ?? this.repairStandard
			..result= result ?? this.result
			..cause= cause ?? this.cause
			..propose= propose ?? this.propose
			..pics= pics ?? this.pics;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}